<!-- rss feed code starts here -->
<?php $siteName = cr('cmsConfig.Backend.siteName');?>
<?php
if($hideRssFeed == false)
{?>
	<link rel="alternate" type="application/rss+xml" title="<?php echo sprintf(__("%s - %s Listings"),$siteName,$categoryData['ListCategory']['name'])?>" href="<?php echo $html->url('/listings/index/category/category:'.$categoryData['ListCategory']['slug'].'.'.'rss')?>">
<?php }?>
<!-- rss feed code ends here -->

<?php 
if(!empty($children))
{?>
	<div class="box_in sub_cat">
		<h5><?php echo __("Sub Categories")?></h5>
		<?php 
		foreach($children as $child)
		{
			?>
			<?php echo $html->link($child['ListCategory']['name'],'/categories/view/'.$child['ListCategory']['slug']);?>
			<?php echo '('.$child['ListCategory']['listing_count'].')';?>
			<?php 
		}
		?>
	
	</div>	<br/>
<?php }?>
<div class="fl">
	<?php echo $html->link(__('New Listing'),array('controller'=>'listings','action'=>'add',$categoryData['ListCategory']['id'],'plugin'=>null), array('class' => 'button add'));?>
</div>

<?php 
	echo $this->requestAction('/listings/index/category/category:'.$categoryData['ListCategory']['slug'],array('return'));
?>
<?php $categoryId = $categoryData['ListCategory']['id'];?>